<?php

class ExperienceModel extends Model{
	
	protected $trueTableName  = "csl_special_order";//主表
	protected $subTableName   = 'csl_dict';//副表

	
	public function getkind($id){
		$subtable = $this->subTableName;
		$map = array();
		$map['type'] = 'products_a_1';
		if($id!='') {
			$map['id'] = $id;
			$result = M($subtable)->where($map)->find();
		}else{
			$result = M($subtable)->where($map)->order('id asc')->select();
		}
		
		return $result;
	}
	
	
	

	
	
	
}

?>